package com.example.demo.main.lambda;

import com.example.demo.domain.po.Album;
import org.junit.jupiter.api.Test;

import java.util.function.BinaryOperator;

/**
 * @author xieluoyin
 *  
 */
class A {
    static void main(String[] args) {
        BinaryOperator<Long> add = (x, y) -> x + y;
        System.out.println(add.apply(100L, 1000L));
    }
    @Test
    void withInitial(){
//        ThreadLocal<Album> thisAlbum
//                = ThreadLocal.withInitial(() -> database.lookupCurrentAlbum());
    }

}
